﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XL.Crawler.Core.Crawlers.CrawlerEventArgs
{
    /// <summary>
    /// 完成事件参数
    /// </summary>
    public class CompletedEventArgs : EventArgs
    {
        /// <summary>
        /// 数据
        /// </summary>
        public string Data { get; set; } = null!;
        /// <summary>
        /// 完成时间
        /// </summary>
        internal DateTimeOffset DateTime { get; }
        /// <summary>
        /// 构造
        /// </summary>
        public CompletedEventArgs()
        {
            DateTime = DateTimeOffset.Now;
        }
        /// <summary>
        /// 构造
        /// </summary>
        /// <param name="data"></param>
        public CompletedEventArgs(string data) : this()
        {
            Data = data;
        }
    }
}
